package swing;

import java.awt.BorderLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.LayoutStyle;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JFrameCrearSeccion extends javax.swing.JFrame {
    static Seccion secc = new Seccion();  /*Importante Tiene q ser static*/
    private JFormattedTextField jFormattedTextFieldSeccion;
    private JLabel lblLogo;
	public JTextField getJtxtcedulaprof() {
		return jtxtcedulaprof;
	}

	public void setJtxtcedulaprof(JTextField jtxtcedulaprof) {
		this.jtxtcedulaprof = jtxtcedulaprof;
		jtxtcedulaprof.setBackground(new java.awt.Color(255,255,255));
	}

	private JPanel jpanSeccion;
	private JPanel jPpanSecc;
	private JButton btnAgregar;
	private JButton jbtnasignarprof;
	private JButton jbtnsalir;
	private JButton jbtncancelar;
	private JFormattedTextField FormattedTxtSeccion;
	private JSeparator jSeparator1;
	private JLabel jlbltituloacademico;
	private JTextField jtxttituloacademico;
	private JLabel jlblCedProfesor;
	private JTextField jtxtnombreprof;
	private JTextField jtxtapellidoprof;
	private JLabel jlblApellidoProf;
	private JLabel jlblNombreProf;
	private JTextField jtxtcedulaprof;
	private JTextPane jTtxtPanProfesor;
	private JTextField jtxtnumseccion;
	private JLabel jlblSeccion;
	private JPanel jpanProfesor;
	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrameCrearSeccion inst = new JFrameCrearSeccion();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public JFrameCrearSeccion() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				setTitle("Apertura de la Seccion");
				getContentPane().setForeground(new java.awt.Color(255,255,255));
				this.setFont(new java.awt.Font("Dialog",0,10));
				getContentPane().setBackground(new java.awt.Color(255,255,255));
				jpanSeccion = new JPanel();
				
				getContentPane().add(jpanSeccion, BorderLayout.CENTER);
				GroupLayout jpanSeccionLayout = new GroupLayout((JComponent)jpanSeccion);
				jpanSeccion.setLayout(jpanSeccionLayout);
				jpanSeccion.setPreferredSize(new java.awt.Dimension(382, 432));
				jpanSeccion.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
				jpanSeccion.setBackground(new java.awt.Color(255,255,255));
				{
					jPpanSecc = new JPanel();
					GroupLayout jPpanSeccLayout = new GroupLayout((JComponent)jPpanSecc);
					jPpanSecc.setLayout(jPpanSeccLayout);
					jPpanSecc.setBackground(new java.awt.Color(255,255,255));
					jPpanSecc.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					{
						jlblSeccion = new JLabel();
						jlblSeccion.setText("Sección");
					}
					{
						jtxtnumseccion = new JTextField();
						jtxtnumseccion.setText("Ingrese aquí el número");
								
						jtxtnumseccion.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {
								if(jtxtnumseccion.getText().compareTo("Ingrese aquí el número")==0)
								jtxtnumseccion.setText("");
			                }
						});
					
					}
					{
						btnAgregar = new JButton();
						btnAgregar.setIcon(new ImageIcon(getClass().getResource("agregar.jpeg")));
						//btnAgregar.setText("Agregar");
						btnAgregar.setBackground(new java.awt.Color(255,255,255));
						btnAgregar.setForeground(new java.awt.Color(255,255,255));
						btnAgregar.setFont(new java.awt.Font("Dialog",0,10));
						btnAgregar.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					}	
						btnAgregar.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {	
						    //TODO add your code for btnAgregar.mouseClicked
								if(jtxtnumseccion.getText().length()==0){
								 JOptionPane.showMessageDialog(null,"Ingrese el numero de la sección", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE);
								}
								else if (jtxtnumseccion.getText().matches("[0-9]*"))
								{	
								int numSeccion = Integer.parseInt(jtxtnumseccion.getText());
					                secc.setNumSeccion(numSeccion);
					                JOptionPane.showMessageDialog(null,"La sección se ha Aperturado Exitosamente ", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE);
					                jtxtnumseccion.setEditable(false);
					                jtxtcedulaprof.setEditable(true);
					                jtxtnombreprof.setEditable(true);
									jtxtapellidoprof.setEditable(true);
									jtxttituloacademico.setEditable(true);
									jbtnasignarprof.setEnabled(true);
							    }
					            else
					            	JOptionPane.showMessageDialog(null,"Ingrese solo numeros enteros, por favor verifique", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE);
						    }	
				      });

					jPpanSeccLayout.setHorizontalGroup(jPpanSeccLayout.createSequentialGroup()
							.addContainerGap(29, Short.MAX_VALUE)
							.addComponent(jlblSeccion, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(jtxtnumseccion, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
							.addGap(20)
							.addComponent(btnAgregar, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE)
							.addContainerGap(24, 24));
					jPpanSeccLayout.setVerticalGroup(jPpanSeccLayout.createSequentialGroup()
							.addContainerGap()
							.addGroup(jPpanSeccLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
							    .addComponent(jtxtnumseccion, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
							    .addComponent(jlblSeccion, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
							    .addComponent(btnAgregar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))
							.addGap(8));
				}
				{
					jpanProfesor = new JPanel();
					GroupLayout jpanProfesorLayout = new GroupLayout((JComponent)jpanProfesor);
					jpanProfesor.setLayout(jpanProfesorLayout);
					jpanProfesor.setBackground(new java.awt.Color(255,255,255));
					jpanProfesor.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					{
						jlblCedProfesor = new JLabel();
						jlblCedProfesor.setText("Cedula:");
					}
					{
						jtxtcedulaprof = new JTextField();
						jtxtcedulaprof.setSize(123, 21);
						jtxtcedulaprof.setEditable(false);
					}
					{
						jlblNombreProf = new JLabel();
						jlblNombreProf.setText("Nombre:");
					}
					{
						jtxtnombreprof = new JTextField();
						jtxtnombreprof.setEditable(false);
						jtxtnombreprof.setBackground(new java.awt.Color(255,255,255));
					}
					{
						jlblApellidoProf = new JLabel();
						jlblApellidoProf.setText("Apellido:");
					}
					{
						jtxtapellidoprof = new JTextField();
						jtxtapellidoprof.setEditable(false);
						jtxtapellidoprof.setBackground(new java.awt.Color(255,255,255));
					}
					{
						jlbltituloacademico = new JLabel();
						jlbltituloacademico.setText("Titulo :");
					}
					{
						jtxttituloacademico = new JTextField();
						jtxttituloacademico.setEditable(false);
						jtxttituloacademico.setBackground(new java.awt.Color(255,255,255));
					}
					{
						jbtnsalir = new JButton();
						jbtnsalir.setIcon(new ImageIcon(getClass().getResource("salir.jpeg")));
//						jbtnsalir.setText("Salir");
						jbtnsalir.setBackground(new java.awt.Color(255,255,255));
						jbtnsalir.setForeground(new java.awt.Color(255,255,255));
						jbtnsalir.setFont(new java.awt.Font("Dialog",0,10));
						jbtnsalir.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
						jbtnsalir.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {
								System.out.println("jbtnsalir.mouseClicked, event="+evt);
								//TODO add your code for btn.mouseClicked
								System.exit(99);
								jpanSeccion.setVisible(false);
							}
						});		
					}
					{
						jbtnasignarprof = new JButton();
						jbtnasignarprof.setIcon(new ImageIcon(getClass().getResource("asignar.jpeg")));
						//jbtnasignarprof.setText("Asignar");
						jbtnasignarprof.setBackground(new java.awt.Color(255,255,255));
						jbtnasignarprof.setEnabled(false);
						jbtnasignarprof.setForeground(new java.awt.Color(255,255,255));
						jbtnasignarprof.setFont(new java.awt.Font("Dialog",0,10));
						jbtnasignarprof.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));

						jbtnasignarprof.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {
								System.out.println("jbtnasignarprof.mouseClicked, event="+evt);
								//TODO add your code for btnNuevo.mouseClicked
			                     if(jtxtcedulaprof.getText().length()!=8||!jtxtcedulaprof.getText().matches("[0-9]*"))
			                    	 JOptionPane.showMessageDialog(null,"Introduzca una cedula con 8 digitos(Sólo numeros)", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE); 
			                     else if(jtxtnombreprof.getText().length()==0)
			                    	 JOptionPane.showMessageDialog(null,"Introduzca el nombre del profesor", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE); 
			                     else if(jtxtapellidoprof.getText().length()==0)
			                    	 JOptionPane.showMessageDialog(null,"Introduzca el apellido del profesor", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE); 
			                     else if(jtxttituloacademico.getText().length()==0)
			                    	 JOptionPane.showMessageDialog(null,"Introduzca el titulo academico del profesor", "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE);
			                     else
			                     {	 
			                     Profesor prof = new Profesor(jtxtcedulaprof.getText(), jtxtnombreprof.getText(), jtxtapellidoprof.getText(), jtxttituloacademico.getText());
			                     secc.asignarProfesor(prof); //Se asigna el Profesor
			                     JOptionPane.showMessageDialog(null,"Profesor Asignado Exitosamente a la seccion:"+secc.getNumSeccion(), "Apertura de Seccion",JOptionPane.INFORMATION_MESSAGE);
			     				 
			                     JFrameMenu jfest = new JFrameMenu();
			    				 jfest.setLocationRelativeTo(null);
			    				 jfest.setVisible(true);
			    				 setVisible(false);
			                     }
			                }
						});
						
					}
					{
						jbtncancelar = new JButton();
						jbtncancelar.setIcon(new ImageIcon(getClass().getResource("cancelar.jpeg")));
						jbtncancelar.setText("Cancelar");
						jbtncancelar.setBackground(new java.awt.Color(255,255,255));
						jbtncancelar.setForeground(new java.awt.Color(255,255,255));
						jbtncancelar.setFont(new java.awt.Font("Dialog",0,10));
						jbtncancelar.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));

						jbtncancelar.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {
								System.out.println("jbtnCancelar.mouseClicked, event="+evt);
								//TODO add your code for btnNuevo.mouseClicked
								jtxtcedulaprof.setText("");
								jtxtnombreprof.setText("");
								jtxtapellidoprof.setText("");
								jtxttituloacademico.setText("");
								jbtnasignarprof.setEnabled(true);
								jtxtnumseccion.setEditable(true);
								jtxtcedulaprof.setEditable(false);
								jtxtnombreprof.setEditable(false);
								jtxtapellidoprof.setEditable(false);
								jtxttituloacademico.setEditable(false);
								jtxtnumseccion.setText("Ingrese aquí el número");
								jbtnasignarprof.setEnabled(false);
							}
						});
					}
					jpanProfesorLayout.setHorizontalGroup(jpanProfesorLayout.createSequentialGroup()
						.addContainerGap(23, 23)
						.addGroup(jpanProfesorLayout.createParallelGroup()
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jlblCedProfesor, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						        .addGap(17))
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jlblApellidoProf, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						        .addGap(7))
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jlbltituloacademico, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						        .addGap(22))
						    .addComponent(jlblNombreProf, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE))
						.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
						.addGroup(jpanProfesorLayout.createParallelGroup()
						    .addComponent(jtxtapellidoprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE)
						    .addComponent(jtxtnombreprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE)
						    .addComponent(jtxtcedulaprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE)
						    .addComponent(jtxttituloacademico, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE))
						.addGap(0, 40, Short.MAX_VALUE)
						.addGroup(jpanProfesorLayout.createParallelGroup()
						    .addComponent(jbtnasignarprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE)
						    .addComponent(jbtncancelar, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE)
						    .addComponent(jbtnsalir, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE))
						.addContainerGap(21, 21));
					jpanProfesorLayout.setVerticalGroup(jpanProfesorLayout.createSequentialGroup()
						.addContainerGap()
						.addGroup(jpanProfesorLayout.createParallelGroup()
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jbtnasignarprof, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE)
						        .addGap(17)
						        .addComponent(jbtncancelar, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
						    .addGroup(jpanProfesorLayout.createSequentialGroup()
						        .addGroup(jpanProfesorLayout.createParallelGroup()
						            .addComponent(jtxtcedulaprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						            .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						                .addComponent(jlblCedProfesor, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						                .addGap(7)))
						        .addGap(21)
						        .addGroup(jpanProfesorLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						            .addComponent(jtxtnombreprof, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						            .addComponent(jlblNombreProf, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
						        .addGap(21)
						        .addGroup(jpanProfesorLayout.createParallelGroup()
						            .addComponent(jtxtapellidoprof, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						            .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						                .addGap(7)
						                .addComponent(jlblApellidoProf, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)))))
						.addGap(18)
						.addGroup(jpanProfesorLayout.createParallelGroup()
						    .addGroup(jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jbtnsalir, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						        .addGap(0, 0, Short.MAX_VALUE))
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jlbltituloacademico, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
						        .addGap(0, 32, Short.MAX_VALUE))
						    .addGroup(GroupLayout.Alignment.LEADING, jpanProfesorLayout.createSequentialGroup()
						        .addComponent(jtxttituloacademico, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
						        .addGap(0, 25, Short.MAX_VALUE)))
						.addContainerGap());
				}
				{
					jTtxtPanProfesor = new JTextPane();
					jTtxtPanProfesor.setText("Asignación del Profesor");
					jTtxtPanProfesor.setEditable(false);
					jTtxtPanProfesor.setFont(new java.awt.Font("Dialog",0,12));
					jTtxtPanProfesor.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					jTtxtPanProfesor.setBackground(new java.awt.Color(24,87,227));
					jTtxtPanProfesor.setForeground(new java.awt.Color(255,255,255));
				}
				{
					jSeparator1 = new JSeparator();
				}
				{
					jFormattedTextFieldSeccion = new JFormattedTextField();
					jFormattedTextFieldSeccion.setText("Asignación de Sección y Profesor");
					jFormattedTextFieldSeccion.setEditable(false);
					jFormattedTextFieldSeccion.setBackground(new java.awt.Color(24,87,227));
					jFormattedTextFieldSeccion.setForeground(new java.awt.Color(255,255,255));
					jFormattedTextFieldSeccion.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
				}
				{
					lblLogo = new JLabel();
					lblLogo.setIcon(new ImageIcon(getClass().getResource("escudo.jpeg")));
				}
				{
					FormattedTxtSeccion = new JFormattedTextField();
					FormattedTxtSeccion.setText("Datos de la Sección");
					FormattedTxtSeccion.setBackground(new java.awt.Color(24,87,227));
					FormattedTxtSeccion.setForeground(new java.awt.Color(255,255,255));
					FormattedTxtSeccion.setFont(new java.awt.Font("Dialog",0,12));
					FormattedTxtSeccion.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
				}
					jpanSeccionLayout.setHorizontalGroup(jpanSeccionLayout.createSequentialGroup()
					.addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(25)
					.addGroup(jpanSeccionLayout.createParallelGroup()
					    .addGroup(jpanSeccionLayout.createSequentialGroup()
					        .addComponent(jPpanSecc, GroupLayout.PREFERRED_SIZE, 329, GroupLayout.PREFERRED_SIZE))
					    .addGroup(jpanSeccionLayout.createSequentialGroup()
					        .addComponent(jpanProfesor, GroupLayout.PREFERRED_SIZE, 329, GroupLayout.PREFERRED_SIZE))
					    .addGroup(jpanSeccionLayout.createSequentialGroup()
					        .addComponent(jTtxtPanProfesor, GroupLayout.PREFERRED_SIZE, 329, GroupLayout.PREFERRED_SIZE))
					    .addGroup(jpanSeccionLayout.createSequentialGroup()
					        .addComponent(FormattedTxtSeccion, GroupLayout.PREFERRED_SIZE, 329, GroupLayout.PREFERRED_SIZE))
					    .addGroup(GroupLayout.Alignment.LEADING, jpanSeccionLayout.createSequentialGroup()
					        .addComponent(lblLogo, GroupLayout.PREFERRED_SIZE, 50, GroupLayout.PREFERRED_SIZE)
					        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					        .addComponent(jFormattedTextFieldSeccion, GroupLayout.PREFERRED_SIZE, 264, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(33, Short.MAX_VALUE));
					jpanSeccionLayout.setVerticalGroup(jpanSeccionLayout.createSequentialGroup()
					.addGroup(jpanSeccionLayout.createParallelGroup()
					    .addComponent(lblLogo, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
					    .addGroup(GroupLayout.Alignment.LEADING, jpanSeccionLayout.createSequentialGroup()
					        .addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, 0, GroupLayout.PREFERRED_SIZE)
					        .addGap(32)
					        .addComponent(jFormattedTextFieldSeccion, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					        .addGap(34)))
					.addComponent(FormattedTxtSeccion, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(jPpanSecc, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)
					.addGap(18)
					.addComponent(jTtxtPanProfesor, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addComponent(jpanProfesor, 0, 201, Short.MAX_VALUE)
					.addContainerGap());
			}
			pack();
			this.setSize(391, 461);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}